<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<html:html xhtml="true" lang="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>

<style type="text/css">
<!--
.style3 {
	font-size: 9px;
	color: #FF0000;
}
.style5 {color: #FF0000}
body {
	background-color: #FFFFFF;
}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script type="text/javascript">
function formatar(valor)
{ 
	var texto = document.getElementById("valorbusca").value;
	if(valor == "cpf")
	{
		var tmp = texto.substring(0,3);
		tmp +=".";
		tmp +=texto.substring(3,6);
		tmp +=".";
		tmp += texto.substring(6,9);
		tmp += "-";
		tmp += texto.substring(9);
		document.getElementById("valorbusca").value = tmp;
	}
	if(valor == "cnpj")
	{
		
		var tmp = texto.substring(0,2);
		tmp +=".";
		tmp += texto.substring(2,5);
		tmp +=".";
		tmp += texto.substring(5,8);
		tmp +="/";
		tmp += texto.substring(8,12);
		tmp +="-";
		tmp += texto.substring(12,15);
		document.getElementById("valorbusca").value = tmp;
	}
}
</script>
<body>

<p>&nbsp;</p>
<html:errors/>
<html:form action="/EditarSolicitacao">
<table width="421" height="214" border="0" align="center" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <td colspan="4"><div align="center"><strong>Busca Solicitacao</strong></div></td>
  </tr>
  <tr>
    <td><span class="style3">* Campos Obrigatorios</span></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left"><strong>Numero Solicitacao</strong> <span class="style5">* </span></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <div align="left">
      	<html:text property="valorbusca" styleId="valorbusca"></html:text>
      </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>    <div align="center">
      <input type="submit" name="Submit" value="Buscar">
    </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
</html:html>
